<template>
  <div>
    <h2>儿子组件</h2>
    <p>{{ money }}</p>
    <hr>
    <Grand/>
  </div>
</template>

<script>
import Grand from './grand.vue'
import { inject } from 'vue'
export default {
  components: {
    Grand
  },
  setup () {
    const money = inject('rmb')
    return { money }
  }
}
</script>

<style lang="scss" scoped>

</style>
